import { IsNotEmpty } from 'class-validator';
import { IsExistsRule } from 'src/common/rules/is-exists.rule';

export class RoleDto {
  @IsNotEmpty({ message: '角色名称不能为空' })
  @IsExistsRule('role', { message: '角色名称已存在' })
  name: string;
}
